#ifndef TOOLS_HH_
# define TOOLS_HH_

# include <iostream>


/** \brief prints \param msg on std::err if we're in debug mode
 ** \param exit does this error request the program to quit
 ** \param log : append to error log file
 ** NOTE: on RELEASE, print on stderr only if \param exit == true
 ** always print on err log file though
 ** NOTE: autoadd end of line
 */
void error(std::string msg, int exit_code = 0, bool log = false);

#endif /* !TOOLS_HH_ */
